function arrayPercentage(data, key, isXorY) {
	var arraylist = new Array();
	var index = data.length;
	for(var i = 0; i < index; i++) {
		var tar = Number(data[i][key].replace("%", ""));
		if(tar==0||tar==100){
			tar = "--"
		}
		arraylist.push(tar);
	};
	return arraylist;
}

function arrayListKeyWord(data, key, isXorY) {
	var arraylist = new Array();
	var index = data.length;
	for(var i = 0; i < index; i++) {
		if(isXorY) {
			if(data[i][key].length > 10) {
				arraylist.push(data[i][key].substring(0, 8) + "....");
			}
		} else {
			arraylist.push(data[i][key]);
		}

	};
	return arraylist;

}
//数据除以10000
function arrayListKeyWord2(data, key, isXorY) {
	var arraylist = new Array();
	var index = data.length;
	for(var i = 0; i < index; i++) {
		arraylist.push((Number(data[i][key])/10000));
	};
	return arraylist;

}

function getToday() {
	var today = new Date();
	today.setDate(today.getDate());
	var year = today.getFullYear();
	var month = today.getMonth() + 1;
	var day = today.getDate();
	if(parseInt(month) < 10) {
		month = "0" + month;
	}
	if(parseInt(day) < 10) {
		day = "0" + day;
	}
	return year + "" + month + "" + day;
}